﻿@model PhoneBilling.Models.Report1ResultModel
@{
    ViewBag.Title = "待收款统计";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">
    function back() {
        history.go(-1); //后退1页  
    }  
</script>
@using (Html.BeginForm("Report1","Statistics"))
{
    @Html.HiddenFor(m=>m.SelectItem)
    @Html.HiddenFor(m => m.收费等级)
    @Html.Hidden("IsExport",true)
    <input type="button" value="返回" onclick="back()"/>  
    <input type="submit" value="导出Excel"/>  
    <div class="input-text">
         @Html.LabelFor(m => m.总金额)
         @Html.DisplayFor(m => m.总金额)
    </div>
    <div>
        @{
    var grid = new WebGrid(source: Model.List, canPage: false);
        }
        @grid.GetHtml(
            alternatingRowStyle: "bg",
            columns: grid.Columns
            (
                  grid.Column("部门", "部门"),
                  grid.Column("分组", "分组"),
                  grid.Column("分机号码", "分机号码"),
                  grid.Column("月", "月份"),
                  grid.Column("月租费", "月租费"),
                  grid.Column("功能费", "功能费"),
                  grid.Column("通话费", "通话费"),
                   grid.Column("话单总次数", "通话次数"),
                  grid.Column("话单总金额", "总金额")
            )
        )
    </div>
}
